<template>
	<view class="top" @click="goSearch()">
		<input class="search_input" type="search" placeholder="搜索你想要的内容" disabled />
		<image class="sear_img" src="../../static/sousuo.png" mode=""></image>
	</view>
</template>

<script>
	export default {
		name: "search",
		data() {
			return {

			};
		},
		methods: {
			goSearch() {
				uni.navigateTo({
					url: "/pages/search/search"
				})
			}
		}
	}
</script>

<style lang="scss">
	.top {
		padding: 14rpx 12rpx;
		position: relative;

		.search_input {
			text-align: center;
			width: 730rpx;
			height: 60rpx;
			margin: 0 auto;
			font-size: 16px;
			overflow: hidden;
			border-radius: 30rpx;
			background-color: white;
			line-height: 60rpx;
		}

		.sear_img {
			width: 60rpx;
			height: 60rpx;
			position: absolute;
			top: 16rpx;
			left: 180rpx;
		}
	}
</style>
